package cre.jaxws.publish;

import org.apache.cxf.frontend.ClientProxyFactoryBean;

import cre.order.HelloWorld;

public class Client {

	public static void main(String[] args) {
		ClientProxyFactoryBean cf = new ClientProxyFactoryBean();
		cf.setAddress("local://hello");
		cf.setServiceClass(HelloWorld.class); // Optionally specify the service interface
		
		HelloWorld h = (HelloWorld) cf.create();
		System.out.println(h);
		System.out.println(h.sayHi("gu"));
	}
}
